import 'package:grocery_app_demo/generated/json/base/json_convert_content.dart';
import 'package:grocery_app_demo/api/entity/supplier_list_by_type_res_entity.dart';

SupplierListByTypeResEntity $SupplierListByTypeResEntityFromJson(Map<String, dynamic> json) {
	final SupplierListByTypeResEntity supplierListByTypeResEntity = SupplierListByTypeResEntity();
	final int? id = jsonConvert.convert<int>(json['id']);
	if (id != null) {
		supplierListByTypeResEntity.id = id;
	}
	final String? name = jsonConvert.convert<String>(json['name']);
	if (name != null) {
		supplierListByTypeResEntity.name = name;
	}
	return supplierListByTypeResEntity;
}

Map<String, dynamic> $SupplierListByTypeResEntityToJson(SupplierListByTypeResEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['id'] = entity.id;
	data['name'] = entity.name;
	return data;
}